package hero.main;


import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class HeroTabActivity extends TabActivity {
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.tabxml);
	 
	        TabHost tabHost = getTabHost();
	 
	        /*
	         * This is where the gets from the Db will happen based on the bundled ids
	         */
	        //TODO
	        /*
	         * 
	         */ 
	        // Tab for Q
	        TabSpec q = tabHost.newTabSpec("Photos");
	        // setting Title and Icon for the Tab
	        q.setIndicator("Electric Tide", getResources().getDrawable(R.drawable.corrupteddisciple_tide));
	        Intent intentQ = new Intent(this, SkillQ.class);
	        q.setContent(intentQ);
	 
	        // Tab for W
	        TabSpec w = tabHost.newTabSpec("Songs");
	        w.setIndicator("Corrupted Conduit", getResources().getDrawable(R.drawable.corrupteddisciple_conduit));
	        Intent intentW = new Intent(this, SkillW.class);
	        w.setContent(intentW);
	 
	        // Tab for E
	        TabSpec e = tabHost.newTabSpec("Videos");
	        e.setIndicator("Static Discharge", getResources().getDrawable(R.drawable.corrupteddisciple_static));
	        Intent intentE = new Intent(this, SkillE.class);
	        e.setContent(intentE);
	        
	        // Tab for R
	        TabSpec r = tabHost.newTabSpec("Videos");
	        r.setIndicator("Overload", getResources().getDrawable(R.drawable.corrupteddisciple_overload));
	        Intent intentR = new Intent(this, SkillR.class);
	        r.setContent(intentR);
	 
	        // Adding all TabSpec to TabHost
	        tabHost.addTab(q);
	        tabHost.addTab(w);
	        tabHost.addTab(e); 
	        tabHost.addTab(r);
	    }
}
